package com.woniuxy.entity;

import java.util.List;

/**
 * @Author: 马宇航
 * @Do: 菜单实体类
 * @DateTime: 22/05/25/0025 上午 10:37
 * @Component: 成都蜗牛学苑
 **/
public class MenuEntity {
    int id;
    //菜单名称
    String menuname;
    String url;
    String icon;
    int menuorder;//菜单顺序
    int fid;
    //子菜单的集合
    List<MenuEntity> children;

    public MenuEntity() {
    }

    public MenuEntity(int id, String menuname, List<MenuEntity> children) {
        this.id = id;
        this.menuname = menuname;
        this.children = children;
    }

    public MenuEntity(int id, String menuname, String url, String icon, List<MenuEntity> children) {
        this.id = id;
        this.menuname = menuname;
        this.url = url;
        this.icon = icon;
        this.children = children;
    }

    public int getFid() {
        return fid;
    }

    public void setFid(int fid) {
        this.fid = fid;
    }

    public int getMenuorder() {
        return menuorder;
    }

    public void setMenuorder(int menuorder) {
        this.menuorder = menuorder;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMenuname() {
        return menuname;
    }

    public void setMenuname(String menuname) {
        this.menuname = menuname;
    }

    public List<MenuEntity> getChildren() {
        return children;
    }

    public void setChildren(List<MenuEntity> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "MenuEntity{" +
                "id=" + id +
                ", menuname='" + menuname + '\'' +
                ", children=" + children +
                '}';
    }
}
